//
//  RadioView.m
//  A_program
//
//  Created by BayMax on 15/5/25.
//  Copyright (c) 2015年 BayMax. All rights reserved.
//

#import "RadioView.h"

@implementation RadioView

- (void)dealloc
{
    [self.smallImageView release];
    [self.bigImageView release];
    [self.nameLabel release];
    [self.likeLabel release];
    [self.collectButton release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.smallImageView = [[UIImageView alloc]initWithFrame:CGRectMake(120, 30, 50, 50)];
        [self addSubview:self.smallImageView];
        [self.smallImageView release];
        
        self.bigImageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 30, 100, 100)];
        [self addSubview:self.bigImageView];
        [self.bigImageView release];
        
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(190, 30, 160, 20)];
        [self addSubview:self.nameLabel];
        [self.nameLabel release];
        
        self.likeLabel = [[UILabel alloc]initWithFrame:CGRectMake(200, 100, 80, 20)];
        [self addSubview:self.likeLabel];
        [self.likeLabel release];
        
    }
    return self;
}

@end
